export default class Json {

  static Encoder = class Encoder {
    static Name = "<%= UIText.Build %> JSON";

    compute(data) {
      return JSON.stringify(data, null, 2);
    }
  }

  static Decoder = class Decoder {
    static Name = "<%= UIText.Parse %> JSON";

    compute(text) {
      return JSON.parse(text);
    }
  }
}
